<!DOCTYPE>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
		<title>题目详情</title>
		<link rel="stylesheet" href="__PUBLIC__/doExercise/css/jqmobo.css">
		<script src="__PUBLIC__/doExercise/js/jquery.min.js"></script>
	</head>
	<body>
		<div id="toptitle">
			<h1 class="htitle">题目详情</h1>
		</div>
		<div class="classquestion">
			<fieldset class="fieldset" style="" id="fieldset1">
					<div class="field ui-field-contain" id="div1" req="1" topic="1" data-role="fieldcontain" type="3">
						<div class="field-label">
							<span style="display: none;" id="id">{$QuesItem.id}</span>
							<img src="{$QuesItem.questionPicPath}{$QuesItem.questionPicName}" />
						</div>

						<div id="answerAera" name="answerAera">
							答案：{$QuesItem.rightAnswer} 解析
							<if condition="($QuesItem.analysisPicPath)">
								<img src="{$QuesItem.analysisPicPath}{$QuesItem.analysisPicName}" />
							</if>
						</div>
					</div>
					<a style="float: left; margin: 15px;" href="{:U('ClassTest/choiceShow')}/chapter/{$QuesItem.type}">返回</a>
					<div id="choiceItem1" style="width: 56px;height: 56px; background-image: url(__PUBLIC__/images/icon_nav_msg.png); border-radius: 28px; float: right; margin: 5px;">
							
					</div>
					<div id="choiceItem2" style="width: 56px;height: 56px; background-image: url(__PUBLIC__/images/checked.png); border-radius: 28px; float: right; margin: 5px; display:none;">
							
					</div>
			</fieldset>
		</div>
	</body>
</html>
<script type="text/javascript">
	//选择
		if(localStorage["{$QuesItem.id}"]){
			$("#choiceItem1").hide();
			$("#choiceItem2").show();
		}
		questionid = "{$QuesItem.id}";

		
	$("#choiceItem1").click(function(){
		$(this).toggle();
		$("#choiceItem2").toggle();
		localStorage.setItem(questionid,questionid);
	});
	//删掉
	$("#choiceItem2").click(function(){
		$(this).toggle();
		$("#choiceItem1").toggle();
		localStorage.removeItem(questionid,questionid);
	});
	
</script>

